package com.wudl.service;

import com.wudl.domain.User;
import com.wudl.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName : UserService
 * @Description :
 * @Author :wudl
 * @Date: 2021-08-12 23:26
 */

@Service("userService")
public class   UserService {


    @Autowired
    UserMapper userMapper;


    public List<User>  UserService()
    {
        String sql = "SELECT id,NAME 'name' FROM test.t_user";
        List<User> user = userMapper.getUser(sql);
        return user;
    }


}
